f = open('test.txt', encoding='utf-8', mode='a')
f.write('在子目录中\n')
f.writelines(['aaa\n', 'bbb\n'])
f.close()
